![]() |
Kinetis SDK Demo Applications User Guide
1.0.0-beta
Freescale Semiconductor, Inc.
|
User guide on how to use this demo. More...
When successfully connected, the program sends "Press spacebar to start demo" to the terminal. Then press space key to continue. Communication Interface Settings:
If a serial terminal echo inputs normally,
Audio Modulator Demo! Press spacebar to start demo.
Demo begin...It plays a C major arpeggio and prints out a menu in the terminal window.
Select note to play:
1. C4
2. D4
3. E4
4. F4
5. G4
6. A4
7. B4
8. C5
->
Enter the number that corresponds to the note you wish to hear and a duration menu appears.
Select note duration:
1. 200ms
2. 100ms
3. 50ms
->
Default duration of the notes in FLASH is 200 ms; Select the number that corresponds with the duration of the note you want. Then, a modulation type menu is printed in the terminal window.
Select note modulation:
1. none
2. Square
3. Saw
4. Triangle
->
Select the type of waveform you wish to modulate the pure tone to. If a non-pure tone is selected, the processing message appears.
Processing...Followed by the completed message.
Completed!At this point, you hear the note with the desired characteristics played through the headphone jack of the TWR-AUDIO-SGTL board.
| pcmBuffer | Pointer to a data array containing WAV formatted audio data. |
| divider | Integer to divide PCM data length to adjust the audio sample duration. |
| pcmBuffer | Pointer to a data array containing the WAV formatted audio data. |
| modBuffer | Pointer to a data array to store the modulated PCM data. |
| fftData | Pointer to a data array for storing the Fast Fourier Transform data. |
| fftResult | Point to a data array for storing real frequency bins from FFT. |
| divider | Integer to divide PCM data length to adjust an audio sample duration. |
| modulation | Constant representing type of waveform achieve from modulation. |
| srcSizeBytes | Size of the WAV format array being processed. |
| sampleSize | Size of a sample for FFT (each sample is 16-bit integer from the PCM data). |
| pcmBuffer | Pointer to a data array containing the WAV formatted audio data. |
| modBuffer | Pointer to a data array to store the modulated PCM data. |
| fftData | Pointer to a data array for storing the Fast Fourier Transform data. |
| fftResult | Point to a data array for storing real frequency bins from FFT. |
| startIndex | Starting index of array to get the PCM data. |
| sampleSize | Size of a sample for FFT (each sample is 16-bit integer from PCM data). |
| modType | Constant representing type of waveform achieve from modulation. |